package com.shigen.shop.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.shigen.shop.serializer.DateTimeSerializer;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 地址VO
 *
 * @author shigenfu
 * @date 2022/7/25 10:41 下午
 */

@Data
public class AddressVO implements Serializable {

  /**
   *
   */
  private Long id;

  /**
   * 用户id
   */
  private Long userId;

  /**
   * 是否默认收货地址：0->否；1->是
   */
  private Integer defaultStatus;

  /**
   * 收发货人姓名
   */
  private String receiveName;

  /**
   * 收货人电话
   */
  private String phone;

  /**
   * 省/直辖市
   */
  private String province;

  /**
   * 市
   */
  private String city;

  /**
   * 区
   */
  private String region;

  /**
   * 详细地址
   */
  private String detailAddress;

  /**
   *
   */
  @JsonSerialize(using = DateTimeSerializer.class)
  private Date createTime;
}
